package com.mit.web.vo.design
{
	import com.mit.web.model.common.OptionItem;
	import com.mit.web.vo.BaseVO;
	
	import mx.collections.ArrayCollection;
	[Bindable]
	[RemoteClass(alias="com.mit.common.design.dto.StyleDTO")]	
	public class StyleVO extends BaseVO
	{
		public var code:String;
		public var year:int;
		public var season:int;
		public var prodTypeId:int;
		public var prodTypeName:String;
		public var sizeGroup:String;//尺码组
		public var sampleSize:String;//样板尺码
		public var name:String;
		public var gift:String;//配件
		public var designerId:int;
		public var designerName:String;
		public var remarks:String;
		public var specInd:String;//专机要求 Y/N
		public var technicalReq:String;
		public var endReq:String;
		public var specialReq:String;
		public var img:String;
		public var creationDate:Date;
		public var approvalDate:Date;
		public var state:String;
		public var sizes:ArrayCollection; //生产的尺码组 item:String: S,M,L sizes和sizefields的互換是在程序中去實現的
		public var sizeFields:ArrayCollection; //尺码组对应的Fields, e.g. S01, S02, S03...
		public var colors:ArrayCollection;//颜色组 item:ProductColorVO
		public var primaryFab:ArrayCollection;//主料 item:FabricVO
		public var secondaryFab:ArrayCollection;//辅料 item:FabricVO
		
		//布版
		public var estimatedFee:Number;
		public var sampleWorker:int;
		public var sampleWorkerName:String;
		public var sampleState:String;
		public var dressState:String;
		
		//专机
		public var specialProgressState:String;
		public var factoryId:int;
		public var factoryName:String;
		
		public var moCount:int;


		//下面的属性只是为了不要出现警告，避免使用这些属性，从sizeFields中取得对应的field。
		public function set s01(s:String):void{}
		public function set s02(s:String):void{}
		public function set s03(s:String):void{}
		public function set s04(s:String):void{}
		public function set s05(s:String):void{}
		public function set s06(s:String):void{}
		public function set s07(s:String):void{}
		public function set s08(s:String):void{}
		public function set s09(s:String):void{}
		public function set s10(s:String):void{}
		
		public function StyleVO()
		{
			super();
			estimatedFee = new Number(0);
			sizes = new ArrayCollection();
			colors = new ArrayCollection();
			primaryFab = new ArrayCollection();
			secondaryFab = new ArrayCollection();
			sizeFields = new ArrayCollection();
		}
	}
}